package DDSFileServer;

import jade.core.Agent;
import jade.core.AID;
import jade.core.behaviours.*;
import jade.lang.acl.*;


/**
 *
 * @author Rasmus
 */
public class FileServerTester extends Agent {

    protected void setup(){
        SequentialBehaviour seq = new SequentialBehaviour();
        seq.addSubBehaviour(new Start(this));
        addBehaviour(seq);
    }

    class Start extends OneShotBehaviour{
        public Start(Agent a){
            super(a);
        }

        public void action(){
            ACLMessage msg = new ACLMessage(ACLMessage.QUERY_REF);
            msg.setContent("CoffeshopSluts.avi");
            msg.addReceiver(new AID("ServerAgent1",AID.ISLOCALNAME));
            send(msg);
        }
    }
}
